﻿using AiShow.BLL;
using AiShow.IBLL;
using AiShow.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AiShow.WebSite
{

    /// <summary>
    /// 首页
    /// </summary>
    public partial class Default : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                IVideoManager videoManager = new VideoManager();
                List<TBVideos> videos = videoManager.GetVideos().ReadResult();
                this.rptVideos.DataSource = videos;
                this.rptVideos.DataBind();
            }
        }
    }
}